﻿@model ErrorViewModel
@{
    ViewData["Title"] = "Error";
}

<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="alert alert-danger shadow-sm" role="alert">
                <h4 class="alert-heading mb-3">发生错误</h4>
                @if (!string.IsNullOrEmpty(Model.Error))
                {
                    <p class="mb-2 fw-bold">@Model.Error</p>
                }
                @if (!string.IsNullOrEmpty(Model.ErrorDescription))
                {
                    <p class="mb-0 text-secondary"><small>@Model.ErrorDescription</small></p>
                }
            </div>
            <div class="text-center mt-4">
                <a href="~/" class="btn btn-primary">
                    返回首页
                </a>
            </div>
        </div>
    </div>
</div>
